﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Runtime.Serialization;

namespace Boiling.Common
{
    public class b_Diarydata : DataSet
    {
        public const string b_Diary_Table = "b_Diary";
        public const string Diary_ID_Field = "Diary_ID";
        public const string User_ID_Field = "User_ID";
        public const string Diary_Title_Field = "Diary_Title";
        public const string Diary_Content_Field = "Diary_Content";
        public const string Diary_date_Field = "Diary_Date";
        


        public b_Diarydata(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
        public b_Diarydata()
        {
            Buildb_DiarydataTables();
        }
        private void Buildb_DiarydataTables()
        {
            DataTable table = new DataTable(b_Diary_Table);
            DataColumnCollection columns = table.Columns;
            columns.Add(Diary_ID_Field, typeof(System.Int32));
            columns.Add(User_ID_Field, typeof(System.String));
            columns.Add(Diary_Title_Field, typeof(System.String));
            columns.Add(Diary_Content_Field, typeof(System.String ));
            columns.Add(Diary_date_Field, typeof(System.DateTime));

            this.Tables.Add(table);
        }




    }
}